package com.gopay.common.domain.dps;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 设备密钥对应表
 * 
 * @author zhoupeng
 *
 */
@Entity
@Table(name = "WA_DEVICE_KEY_INFO")
public class WaDeviceKeyInfo extends BaseEntity {
	private static final long serialVersionUID = 1L;

	private String  deviceId;
	private String  privateKey;
	private int   errorNum;
	private int   md5ErrorNum;
	private int   tsErrorNum;
	
	
	@Id
	@Column(name = "DEVICE_ID", unique = true, nullable = false, length = 64)
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	@Column(name = "PRIVATE_KEY", nullable = false, length = 64)
	public String getPrivateKey() {
		return privateKey;
	}
	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}
	@Column(name = "ERRORNUM", nullable = true)
	public int getErrorNum() {
		return errorNum;
	}
	public void setErrorNum(int errorNum) {
		this.errorNum = errorNum;
	}
	@Column(name = "MD5ERRORNUM", nullable = true)
	public int getMd5ErrorNum() {
		return md5ErrorNum;
	}
	public void setMd5ErrorNum(int md5ErrorNum) {
		this.md5ErrorNum = md5ErrorNum;
	}
	@Column(name = "TSERRORNUM", nullable = true)
	public int getTsErrorNum() {
		return tsErrorNum;
	}
	public void setTsErrorNum(int tsErrorNum) {
		this.tsErrorNum = tsErrorNum;
	}
}
